begintownscript;

variables;

 short choice;
 body;
 
beginstate INIT_STATE;
 break;
 
beginstate EXIT_STATE;
 break;
 
beginstate START_STATE;
 break;
 
beginstate 10;
 
add_dialog_str(0,"There is a dark portal here. Would you like to enter it?",0);
 
add_dialog_choice(0,"No.");
 
add_dialog_choice(1,"Enter portal.");
 if (run_dialog(1) == 2){ play_sound(10);
  move_to_new_town(6,14,21);
 } else
 block_entry(1);
 break;
 
beginstate 11;
 
add_dialog_str(0,"There is a trapdoor here, would you like to go down it?",0);
 
add_dialog_choice(0,"No.");
 
add_dialog_choice(1,"Go down trapdoor.");
 if (run_dialog(1) == 2){ message_dialog("Oops. It turns out that the ladder doesn't go all the way to the bottom. You didn't realize that and fell.","");
 move_to_new_town(13,24,7);
 } else
 block_entry(1);
 break;
 